package link.hwx.service.oa.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import link.hwx.entity.oa.OaBillInfoVo;
import link.hwx.mapper.oa.OaBillingMapper;
import link.hwx.service.oa.OaBillingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@DS("OAData")
@Service
public class OaBillingServiceImpl implements OaBillingService {

    @Autowired
    private OaBillingMapper oaBillingMapper;

    @Override
    public OaBillInfoVo findBillingByRequestId(String billingMainTableName, String requestid) {
        return oaBillingMapper.findBillingByRequestId(billingMainTableName, requestid);
    }

    @Override
    public int updateBillingSrmDocNoByRequestId(String billingMainTableName, String requestid, String srmdocno) {
        return oaBillingMapper.updateBillingSrmDocNoByRequestId(billingMainTableName, requestid, srmdocno);
    }

    @Override
    public List<OaBillInfoVo> findBillingByDocnoType(String billingMainTableName, String srmdocno, String nodeType) {
        return oaBillingMapper.findBillingByDocnoType(billingMainTableName, srmdocno, nodeType);
    }
}
